package com.wlz.thread;


import java.util.HashMap;
import java.util.Map;

/**
 * @author wlz
 * @date 2024-04-08  09:49
 */
public class ParallelStreamTest {

    public static void main(String[] args) {
        Map<String, String> collect = new HashMap<>();
        for (int i = 10; i < 100; i++) {
            collect.put("key" + i, "value" + i);
        }
        collect.entrySet().parallelStream().forEach(f -> {
            System.out.println(f.getKey() + ":" + f.getValue());
        });
    }
}
